@echo off
set ProjName=hirespak
echo Ready to Start.

echo Packing Hi-res Pack...
cd .\scbase
..\7z a -r -ssw -tzip ..\%ProjName%n.pk3 "*" -x!demo*.lmp -x!*.bak -xr!.svn -x!*.backup* -x!Thumbs.db -x!*.txt -xr!actors -xr!flats -xr!graphics -xr!maps -xr!music -xr!sounds -xr!sprites -xr!textures 
echo Done packing.

echo Step 2: Replace old version
echo Replacing old versions.
cd ..
del %ProjName%.pk3
ren %ProjName%n.pk3 %ProjName%.pk3
echo Done replacing

echo Done.
pause